package com.test.seataorder.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "nacos-seata-account")
public interface AccountFeignClient {

    /**
     * 扣减账户余额
     */
    @PostMapping("/account/decrease")
    String decrease(@RequestParam("userId") Long userId, @RequestParam("money") Double money);
}
